package com.hzhk.happyrent.bean.rent;


import okhttp3.MediaType;
import okhttp3.ResponseBody;
import okio.BufferedSource;

/**
 * User: hzhk(1097282555@qq.com)
 * Date: 2017/11/22
 * Time: 15:36
 * progject: HappyRent
 * Describe： ${Describe}
 */
public class BaseModel extends ResponseBody {

    /**
     * errCode : 0
     * message : success
     * data : {"goods_types":[{"id":"96","sort_tit":"手机","sort_cover_image":""},{"id":"97","sort_tit":"ipad","sort_cover_image":""},{"id":"98","sort_tit":"电脑","sort_cover_image":""},{"id":"99","sort_tit":"iwatch","sort_cover_image":""}]}
     * time : 1511335912
     */

    private int errCode;
    private String message;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    private int time;

    @Override
    public String toString() {
        return "BaseModel{" +
                "errCode=" + errCode +
                ", message='" + message + '\'' +
                ", time=" + time +
                '}';
    }

    @Override
    public MediaType contentType() {
        return null;
    }

    @Override
    public long contentLength() {
        return 0;
    }

    @Override
    public BufferedSource source() {
        return null;
    }
}
